package com.sh.data.engine.domain.integration.datasource.model.mapper;

import com.sh.data.engine.domain.integration.datasource.model.domain.DataSourceDetailDomain;
import com.sh.data.engine.domain.integration.datasource.model.param.DataSourceHiveSaveParam;
import com.sh.data.engine.repository.dao.integration.datasource.entity.DataSourceEntity;
import org.mapstruct.Mapper;

/**
 * @author: mengzheng.mhc
 * @date: 2024/6/7 17:28
 */
@Mapper(componentModel = "spring")
public interface HiveConfigMapper {

    DataSourceEntity.HiveConfig paramToConfig(DataSourceHiveSaveParam param);

    DataSourceDetailDomain.HiveConfig entityToDomain(DataSourceEntity.HiveConfig entityConfig);
}
